<?php 
require_once BASE_PATH.'application/models/basedao'.EXT;

class BitLyDAO extends baseDAO {

    var $user = "masnatacion";
    var $key  = "R_f96548100099411298226c79f1d45a55";

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        $this->load->library('bitly/bitly',array($this->user,$this->key));

    }
    
  
    function select($url) {
        
        return $this->bitly->shorten($url);
    
    }    

    
}

?>